#!/bin/sh
if [ ! -d .symlinks ]; then
    prefix=`pwd`
    mkdir -p .symlinks/@CMAKE_INSTALL_DATAROOTDIR@
    cd .symlinks/@CMAKE_INSTALL_DATAROOTDIR@
    ln -s ompl@OMPL_INSTALL_SUFFIX@ ompl
    cd ${prefix}
    mkdir -p .symlinks/@CMAKE_INSTALL_LIBDIR@/pkgconfig
    cd .symlinks/@CMAKE_INSTALL_LIBDIR@/pkgconfig
    ln -s ompl@OMPL_INSTALL_SUFFIX@.pc ompl.pc
    cd ${prefix}
    mkdir -p .symlinks/@CMAKE_INSTALL_INCLUDEDIR@
    cd .symlinks/include
    ln -s ompl@OMPL_INSTALL_SUFFIX@ ompl
    if [ $1 ]; then
        ln -s omplapp@OMPL_INSTALL_SUFFIX@ omplapp
    fi
fi
